package pri.black.dogview.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

@TableName("device_status")
public class DeviceStatus {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Integer ticks;

    private String deviceId;

    private Integer powerMode;

    private Integer powerSwitch;

    private Integer gpsSwitch;

    private Integer gpsStatus;

    private Integer battery;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getTicks() {
        return ticks;
    }

    public void setTicks(Integer ticks) {
        this.ticks = ticks;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getPowerMode() {
        return powerMode;
    }

    public void setPowerMode(Integer powerMode) {
        this.powerMode = powerMode;
    }

    public Integer getPowerSwitch() {
        return powerSwitch;
    }

    public void setPowerSwitch(Integer powerSwitch) {
        this.powerSwitch = powerSwitch;
    }

    public Integer getGpsSwitch() {
        return gpsSwitch;
    }

    public void setGpsSwitch(Integer gpsSwitch) {
        this.gpsSwitch = gpsSwitch;
    }

    public Integer getGpsStatus() {
        return gpsStatus;
    }

    public void setGpsStatus(Integer gpsStatus) {
        this.gpsStatus = gpsStatus;
    }

    public Integer getBattery() {
        return battery;
    }

    public void setBattery(Integer battery) {
        this.battery = battery;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
